package com.examination.mlib.utils;

import com.amap.api.location.AMapLocation;
import com.examination.mlib.bean.DefaultEntity;

public class LocationUtils {
    private volatile static LocationUtils utils = null;
    private DefaultEntity.DataBean whCityBean;
    //当没有默认地址和选择地址的情况下的定位地址
    private AMapLocation aMapLocation;
    private LocationUtils(){}

    public static LocationUtils getInstance() {
        if(utils == null){
            synchronized (LocationUtils.class){
                if (utils == null){
                    utils = new LocationUtils();
                }
            }
        }
        return utils;
    }

    public DefaultEntity.DataBean getWhCityBean() {
        return whCityBean;
    }

    public void setWhCityBean(DefaultEntity.DataBean whCityBean) {
        this.whCityBean = whCityBean;
    }

    public AMapLocation getaMapLocation() {
        return aMapLocation;
    }

    public void setaMapLocation(AMapLocation aMapLocation) {
        this.aMapLocation = aMapLocation;
    }
}
